package com.ruoyi.smart.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.smart.mapper.SmartProcessMapper;
import com.ruoyi.smart.domain.SmartProcess;
import com.ruoyi.smart.service.ISmartProcessService;

/**
 * 工序Service业务层处理
 * 
 * @author minwei
 * @date 2022-04-19
 */
@Service
public class SmartProcessServiceImpl implements ISmartProcessService 
{
    @Autowired
    private SmartProcessMapper smartProcessMapper;

    /**
     * 查询工序
     * 
     * @param id 工序主键
     * @return 工序
     */
    @Override
    public SmartProcess selectSmartProcessById(Long id)
    {
        return smartProcessMapper.selectSmartProcessById(id);
    }

    /**
     * 查询工序列表
     * 
     * @param smartProcess 工序
     * @return 工序
     */
    @Override
    public List<SmartProcess> selectSmartProcessList(SmartProcess smartProcess)
    {
        return smartProcessMapper.selectSmartProcessList(smartProcess);
    }

    /**
     * 新增工序
     * 
     * @param smartProcess 工序
     * @return 结果
     */
    @Override
    public int insertSmartProcess(SmartProcess smartProcess)
    {
        return smartProcessMapper.insertSmartProcess(smartProcess);
    }

    /**
     * 修改工序
     * 
     * @param smartProcess 工序
     * @return 结果
     */
    @Override
    public int updateSmartProcess(SmartProcess smartProcess)
    {
        return smartProcessMapper.updateSmartProcess(smartProcess);
    }

    /**
     * 批量删除工序
     * 
     * @param ids 需要删除的工序主键
     * @return 结果
     */
    @Override
    public int deleteSmartProcessByIds(Long[] ids)
    {
        return smartProcessMapper.deleteSmartProcessByIds(ids);
    }

    /**
     * 删除工序信息
     * 
     * @param id 工序主键
     * @return 结果
     */
    @Override
    public int deleteSmartProcessById(Long id)
    {
        return smartProcessMapper.deleteSmartProcessById(id);
    }
}
